//
//  DataOfInsideSpecialistCharts.m
//  __PRODUCTNAME__
//
//  Created by li cheng on 16/09/20
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "DataOfInsideSpecialistCharts.h"
#import "Way_Type_SetOfDataInsideSpecialistCharts.h"
#import "UserOfDataInsideSpecialistCharts.h"
@implementation DataOfInsideSpecialistCharts
- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"way_type_set"]) {
        NSMutableArray<Way_Type_SetOfDataInsideSpecialistCharts *> *mArrayOfWay_Type_SetOfDataInsideSpecialistCharts = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            Way_Type_SetOfDataInsideSpecialistCharts *way_Type_SetOfDataInsideSpecialistCharts = [Way_Type_SetOfDataInsideSpecialistCharts modelDic:dic];
            [mArrayOfWay_Type_SetOfDataInsideSpecialistCharts addObject:way_Type_SetOfDataInsideSpecialistCharts];
        }
        _way_type_set = mArrayOfWay_Type_SetOfDataInsideSpecialistCharts;
    }
    if ([key isEqualToString:@"user"]) {
        _user = [UserOfDataInsideSpecialistCharts modelDic:value];
    }
}
- (void)setValue:(id)value forUndefinedKey:(nonnull NSString *)key{
    [super setValue:value forUndefinedKey:key];
    if ([key isEqualToString:@"id"]) {
        self.ID = value;
    }
}
+ (NSDictionary *)objectClassInArray{
    return @{@"way_type_set" : [Way_Type_SetOfDataInsideSpecialistCharts class]};
}

@end
